package com.hmkj.core.mapper.holiday;

import com.hmkj.common.baseMapper.GenericMapper;
import com.hmkj.core.po.holiday.Holiday;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * 节假日相关Dao接口<br>
 *
 * @author eproo
 * @date   2018-07-10 04:27:40
 */
public interface HolidayMapper extends GenericMapper< Holiday,Integer> {
    @Select("SELECT t.* FROM s_holiday t WHERE 1=1 ${whereSql} ${sortSql} limit ${nowPage}, ${pageSize} ")
    List<Holiday> findListBySqlJoin(Map<String, Object> params);

    @Select("SELECT count(1) FROM s_holiday t WHERE 1=1 ${whereSql}")
    long countBySqlJoin(Map<String, Object> params);

}
